package suzf.top.usercenter.data.repository

import rx.Observable
import suzf.top.base.data.net.RetrofitFactory
import suzf.top.base.data.protocol.BaseResp
import suzf.top.usercenter.data.api.UploadApi
import suzf.top.usercenter.data.api.UserApi
import suzf.top.usercenter.data.protocol.*
import javax.inject.Inject

/**
 *  用户网络请求
 *========================
 * Created with AndroidStudio
 * Author:Mr.Su
 * Date:2019-09-08
 * Time:14:38
 * ========================
 */
class UploadTokenRepository @Inject constructor(){

    /**
     * 注册
     */
    fun getUploadToken(): Observable<BaseResp<String>> {
        return RetrofitFactory.instance.create(UploadApi::class.java)
                .getUploadToken()

    }
}